package com.cynteka.cyfoman.core;

import java.util.Date;

/**
 * User: ukman
 * Date: 18.07.11
 * Time: 14:14
 */
public class NowFunction implements Function<Date> {
    public static final String DEFALT_NOW_NAME = "now";
    private String name = DEFALT_NOW_NAME;

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public Date getValue() {
        return new Date();
    }
}
